import java.util.Scanner;
import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-09-26
 * Time: 21:46
 */
public class Exam926 {
    String str=new String("good");
    char[]ch={'a','b','c'};
    public static void main(String args[]){
        Exam926 ex=new Exam926();
        ex.change(ex.str,ex.ch);
        System.out.print(ex.str+" and ");
        System.out.print(ex.ch);
    }
    public void change(String str,char ch[]){
        //引用类型变量，传递的是地址，属于引用传递。
        str="test ok";
        ch[0]='g';
    }
    public static boolean returnTest(){
        try{
            return true;
        }
        catch (Exception e){
        }
        finally{
            return false;
        }
    }

    public static void main5(String[] args) {
        System.out.println(returnTest());
    }
    public static void main4(String sgf[]) {
        StringBuffer a=new StringBuffer("A");
        StringBuffer b=new StringBuffer("B");
        operate(a,b);
        System.out.println(a+"."+b);
    }
    static void operate(StringBuffer x,StringBuffer y) {
        x.append(y);
        y=x;
    }
//    public static void main(String[] args){
//        Scanner sc=new Scanner(System.in);
//        int num=sc.nextInt();
//        int n=sc.nextInt();
//        char[] temp={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
//        boolean b=false;//表示正数
//        if(num<0){
//            b=true;//表示负数
//            num=0-num;
//        }
//        StringBuffer strBuf=new StringBuffer();
//        while(num>0){
//            //num%n得到转化后的每一位数字，
//            // 十六进制大于10需要得到A,B,C,D,E,F所以需要用到上面定义的数组
//            strBuf.append(temp[num%n]);
//            num/=n;
//        }
//        if(b){
//            //如果原数字是负数
//            strBuf.append('-');
//        }
//        System.out.println(strBuf.reverse());//反转并输出
//    }
    public static void func2(int m, int n) {
        int x = m % n;
        if(m / n != 0) {
            func2(m / n, n);
        }
        if(x < 10) {
            System.out.print(x);
        } else {
            int c = 'A' + x - 10;
            char[] chars = Character.toChars(c);
            System.out.print(chars[0]);
        }
    }
    public static void func1(int m, int n) {
        if(m / n == 0) {
            System.out.print(m % n);
        } else {
            func1(m / n, n);
            System.out.print(m % n);
        }
    }

    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int m = scanner.nextInt();
        int n = scanner.nextInt();
        String str = "0123456789ABCDEF";
        Stack<Character> stack = new Stack<>();
        boolean flag = false;
        if(m < 0) {
            m = -m;
            flag = true;
        } else if(m == 0) {
            System.out.println(0);
            return;
        }
        while (m != 0) {
            stack.push(str.charAt(m % n));
            m /= n;
        }
        if(flag) {
            stack.push('-');
        }
        while (!stack.empty()) {
            System.out.print(stack.pop());
        }
    }

    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int m = scanner.nextInt();
        int n = scanner.nextInt();
        if(m < 0) {
            System.out.print("-");
            m = -m;
        }
        if(n <= 9) {
            func1(m, n);
        } else {
            func2(m, n);
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a_b = scanner.nextInt();
        int b_c = scanner.nextInt();
        int ab = scanner.nextInt();
        int bc = scanner.nextInt();
        int A = (a_b + ab) / 2;
        int B = ab - A;
        int C = bc - B;
        if(A - B == a_b && B - C == b_c && A + B == ab && B + C == bc) {
            System.out.println(A + " " + B + " " + C);
        } else {
            System.out.println("No");
        }

    }
}
